/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

/**
 * 1. Focused state overrides invalid state.
 */
.ouiFormLabel {
  @include ouiFormLabel;
  display: inline-block;
  transition: all $ouiAnimSpeedFast $ouiAnimSlightResistance;

  &.ouiFormLabel-isInvalid {
    color: $ouiColorDanger; /* 1 */
  }

  &.ouiFormLabel-isFocused {
    color: $ouiColorPrimary; /* 1 */
  }
}

.ouiFormLabel[for] {
  cursor: pointer;
}
